package day09API.file;

import java.io.File;

public class Demo02 {
    public static void main(String[] args) throws Exception {
        File file = new File("./File/mkdir");
        if (!file.exists()){
            file.createNewFile();
            System.out.println("创建了文件夹");
        }else {
            System.out.println("文件已存在");
        }

    }
}
